package com.john.cloud.feigin.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/4/27 9:27
 */
@Component
@RabbitListener
public class TopticReceiver {

    @RabbitListener(queues = "topic.message")
    public void topic(String str){
        System.out.println("topic" +str );
    }

    @RabbitListener(queues = "topic.messages")
    public void topic1(String str){
        System.out.println("topic1 "+str);
    }

}
